package com.base.common.edu.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * @Author Maple.Chen
 * @Description 课程定义实体
 * @Date 16:35 2021/1/29
 **/
@Data
@ApiModel(description = "课程定义实体")
@JsonIgnoreProperties(value = {"handler"})
public class Course implements Serializable{

    private static final long serialVersionUID = -7670056511996743600L;
    @ApiModelProperty( value = "课程ID：UUID")
    private String courseID;
    @ApiModelProperty( value = "课程名称")
    private String courseName;
    @ApiModelProperty( value = "课程学分：0~9")
    private Integer courseCredit;
    @ApiModelProperty( value = "先行课程ID（预留字段，暂不实现）")
    private String preCourseID;
    @ApiModelProperty( value = "课程状态：（1：生效[Activated],-1：失效[Invalid]）")
    private Integer courseStatus;
    @ApiModelProperty( value = "对应在授课程映射集合")
    private Set<ValidCourse> validCourses = new HashSet<ValidCourse>();

}
